package routers

import (
	beego "github.com/beego/beego/v2/server/web"
	"novel/controllers"
)

func init() {
	beego.Router("/", &controllers.MainController{})
	beego.Router("/novel/add", &controllers.NovelController{}, "post:Add")
	beego.Router("/novel/list", &controllers.NovelController{}, "get:List")
}
